GUI Help > General > gadgetY

gadgetY
int y=gadgetY(handle gadget, [handle relativeToGadget])

Description:
Returns the Y position of the gadget relative to its parent gadget/window, or optionally, relative to the specified gadget.

Return Value:
Y co-ordinate of top edge of gadget relative to parent

Parameters:
gadget Handle to a gadget
[relativeToGadget] Optional. Handle of a gadget. If specified the position of the gadget is returned relative to relativeToGadget.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)